<input type="hidden" id="contestid" value="|£|$baseInfos.id|\£|"/>
|£|$baseInfos.status|\£|
<script>
        $(function(){
            $("#vidwiz_contestInfo_tabs").tabs({
                fx: {opacity:"toggle"}
                });
            });
    </script>
        <div id="vidwiz_contestInfo_tabs">
            <ul>
                |£|if $baseInfos.status == "subscription" ||$baseInfos.status == "user_validation"|\£|
                    <li><a href="#vidwiz_contestInfo_tabs-1">Iscrizioni</a></li>
                |£|/if|\£|
                |£|if $baseInfos.status == "video_validation" || $baseInfos.status == "ending_validation"|\£|
                    <li><a href="#vidwiz_contestInfo_tabs-2">Video</a></li>
                |£|/if|\£|
                |£|if $winnerSelection == "1" && ($baseInfos.status == "voting" || $baseInfos.status == "mail_sent")|\£|
                    <li><a href="#vidwiz_contestInfo_tabs-3">Classifica</a></li>
                |£|elseif $baseInfos.status == "voting"|\£|
                    <li><a href="#vidwiz_contestInfo_tabs-4">Scegli vincitore</a></li>
                |£|/if|\£|
            </ul>
            |£|if $baseInfos.status == "subscription" ||$baseInfos.status == "user_validation"|\£|
                <div id="vidwiz_contestInfo_tabs-1">
                    |£|foreach key=key from=$users item=item|\£|
                        <table id="user-|£|$item.userid|\£|" class="vidwiz_contest_user">
                            <tr>
                                <td><strong style="font-size: 17px;">Username: |£|$item.user_login|\£|</strong></td>
                                <td class="vidwiz_contest_buttons">
                                    <input class="vidwiz_user_button" type="button" value="Approva" onclick="allow_disallowUserInContest('|£|$item.userid|\£|','user-|£|$item.userid|\£|','allow');"/><br/>
                                    <input class="vidwiz_user_button" type="button" value="Disapprova" onclick="allow_disallowUserInContest('|£|$item.userid|\£|','user-|£|$item.userid|\£|','disallow');" />
                                </td>
                            </tr>
                        </table>
                    |£|/foreach|\£|
                </div>
            |£|/if|\£|
            |£|if $baseInfos.status == "video_validation" || $baseInfos.status == "ending_validation"|\£|
                <div id="vidwiz_contestInfo_tabs-2">
                    |£|$results|\£|
                </div>
            |£|/if|\£|
            |£|if $winnerSelection == "1" && ($baseInfos.status == "voting" || $baseInfos.status == "mail_sent")|\£|
                <div id="vidwiz_contestInfo_tabs-3">
                    <table style="width:100%;">
                        <tr>
                            <td><strong style="font-size: 17px;">Username</strong></td>
                            <td><strong style="font-size: 17px;">Posizione</strong></td>
                            <td><strong style="font-size: 17px;">Voto</strong></td>
                        </tr>
                    |£|foreach key="key" from=$charts item=item|\£|
                        
                            <tr id="charts-user-|£|$key|\£|" class="vidwiz_contest_user">
                                <td><strong style="font-size: 17px;">|£|$item.publisher_username|\£|</strong></td>
                                <td><strong style="font-size: 17px;">|£|$key+1|\£| °</strong></td>
                                <td><strong style="font-size: 17px;">|£|$item.score|\£|</strong></td>
                            </tr>
                        
                    |£|/foreach|\£|
                    </table>
                </div>
            |£|/if|\£|
            |£|if $winnerSelection == "0"  && $baseInfos.status == "voting"|\£|
                <div id="vidwiz_contestInfo_tabs-4">
                    <div>
                        |£|foreach key=key from=$users item=item|\£|
                        <table id="user-|£|$item.userid|\£|" class="vidwiz_contest_user notInCharts" userid="|£|$item.userid|\£|">
                            <tr>
                                <td><strong style="font-size: 17px;">Username: |£|$item.user_login|\£|</strong></td>
                                <td id="user-buttons-|£|$item.userid|\£|" class="vidwiz_contest_buttons">
                                    <input type="button" value="Guarda video" onclick="showVideoForVoting('|£|$item.userid|\£|','|£|$baseInfos.id|\£|');"/><br/>
                                    <input class="inputChart" type="button" value="|£|$users|@count|\£|° classificato" onclick="deleteUserFromCharts('|£|$item.userid|\£|','|£|$baseInfos.id|\£|')"/>
                                </td>
                            </tr>
                        </table>
                        |£|/foreach|\£|
                    </div>
                </div>
            |£|/if|\£|
        </div>